<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="//cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script type="text/javascript" src="//static.runoob.com/assets/qrcode/qrcode.min.js"></script>
</head>
<body>
    <div id="showPayCode"></div>
    <!--生成二维码-->
    <script type="text/javascript">
        new QRCode(document.getElementById("showPayCode"), "${code_url}");  // 设置要生成二维码的链接
    </script>

    <script>
        var t = 2000;
        var cout=4;
        var set1 = setInterval(checkOrder, t);
        function checkOrder() {
            count-=1;
            if(cout<1){
                clearInterval(set1);
            }
            ajax.get("state/${order_id}").then(function (res) {
                //判断res返回值状态

            });
        }
    </script>



</body>
</html>